import request from '@/utils/request';

export async function getPlantCapacityCalendarByPage (params: any) {
    return request('/api/product/getPlantCapacityCalendarByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addPlantCapacityCalendar (params: any) {
    return request('/api/product/addPlantCapacityCalendar', {
    method: 'POST',
    data: params,
  });
}

export async function updatePlantCapacityCalendar (params: any) {
    return request('/api/product/updatePlantCapacityCalendar', {
    method: 'POST',
    data: params,
  });
}

export async function delPlantCapacityCalendar (params: any) {
    return request('/api/product/delPlantCapacityCalendar', {
    method: 'POST',
    data: params,
  });
}


export async function exportPlantCapacityCalendar(params: any) {
    return request('/api/product/exportPlantCapacityCalendar', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getPlantCapacityCalendarByPage, addPlantCapacityCalendar, updatePlantCapacityCalendar, delPlantCapacityCalendar, exportPlantCapacityCalendar }
